﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.Sim.Company.JobTitle
{
	/// <summary>
	/// 职位
	/// </summary>
	public class JobTitleRequestDto
	{
		/// <summary>
		/// 职位编号
		/// </summary>		
		[Display(Name = "职位编号")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string JobTitleNo { get; set; }
		/// <summary>
		/// 职位名称
		/// </summary>		
		[Display(Name = "职位名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string JobTitle { get; set; }
		/// <summary>
		/// 启用
		/// </summary>		
		[Display(Name = "启用")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public bool Enabled { get; set; }
		/// <summary>
		/// 职位备注
		/// </summary>		
		[Display(Name = "职位备注")]
		[StringLength(400, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string JobTitleRemark { get; set; }
		/// <summary>
		/// 编辑时间
		/// </summary>		
		[Display(Name = "编辑时间")]
		public DateTime? UpdateTime { get; set; }
	}
}

